package cn.glc.daily.life.infrastructure.repository.mysql;

import cn.glc.daily.life.infrastructure.dao.UserTaskDao;
import cn.glc.daily.life.infrastructure.po.UserTaskPo;
import cn.glc.daily.life.model.dto.user.task.UserTaskQueryDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

/**
 * 用户任务
 *
 * @author simon
 * @date 2021/5/11 17:42
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
@Repository
public class UserTaskRepository extends ServiceImpl<UserTaskDao, UserTaskPo> implements IService<UserTaskPo> {

    /**
     * 分页查询
     *
     * @param page
     * @param userTaskQueryDto
     * @return
     */
    public IPage<UserTaskPo> listPage(Page page, UserTaskQueryDto userTaskQueryDto) {
        return super.baseMapper.listPage(page, userTaskQueryDto);
    }
}
